package com.ljx.threadTest.controller;

import com.ljx.threadTest.module.CfCategory;
import com.ljx.threadTest.module.Result;
import com.ljx.threadTest.service.CfCategoryService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 李加喜
 * @Package com.ljx.threadTest.controller
 * @date 2024-05-29 10:11
 */
@RestController
@RequestMapping("/auth/cfCategory")
@Slf4j
@Api(tags = {"测试模块"}, value = "测试数据")
public class CfCategoryController {

    @Resource
    private CfCategoryService cfCategoryService;

    @RequestMapping(value = "/getBool",method = RequestMethod.GET)
    private Result<Boolean> getBool(){
        List<CfCategory> list = cfCategoryService.list();
        System.out.println(list.toString());
        return Result.ok();
    }
}
